import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './style/index.css'
import * as ELIcons from '@element-plus/icons-vue'
import { ElLoading,ElLoadingDirective } from '@/components/loading'

//createApp(App).use(store).use(router).mount('#app')

const app = createApp(App);
for (let iconName in ELIcons) {
  app.component(iconName, ELIcons[iconName])
}

app.directive('loading', ElLoadingDirective)
app.use(router).mount('#app')
